<?php
error_reporting(E_ALL);
ini_set('display_errors', true);

  mysql_connect("localhost","root","");
  mysql_select_db("bdVille");
  $sql=mysql_query("select * from tblVille where Nom_ville like 'L%'");
  while($row=mysql_fetch_assoc($sql))
  $output[]=$row;
  print(json_encode($output));
  mysql_close();
?>
